package com.ruoyi.worklog.service;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.worklog.domain.WlProject;
import com.ruoyi.worklog.domain.WlStaffProject;

import java.util.List;

/**
 * @Author cw
 * @Date 2022/7/22 - 07 - 22
 * @Description com.ruoyi.worklog.service
 */
public interface StaffProjectService {


    public WlStaffProject selectWlStaffProject(WlStaffProject wlStaffProject);

    // public List<WlStaffProject> selectAllWlStaffProject();


    //查询所有项目信息

    //获取一个项目中所有员工id
    public List<Long> selectStaffIds(int projectId);


    //获取一个员工的所有项目id
    public List<Integer> selectProjectIds(long staffId);
    /**
     * 增加员工id项目内容
     */
    public int insertWlStaffProject(WlStaffProject staffProlist);

    public int updateWlStaffProject(WlStaffProject staffProlist);

    //通过员工id和项目id删除一个具体关系
    public int deleteWlStaffProject(WlStaffProject wlStaffProject);

    //通过员工id批量删除
    public int deleteWlStaffProjectByStaffId(long staffId);


    //通过项目id批量删除
    public int deleteWlStaffProjectByProjectId(int projectId);
}
